#写入文件
with open('Beacuse.txt','w') as file_object:
	flags = 1
	while flags:
		massage = input("您为啥喜欢编程呢？(输入et退出！):")
		if massage != 'et':
			file_object.write(massage+'\n')
			print('已存入理由：'+massage)
		else:
			flags = 0

#读取文件
with open('Beacuse.txt') as file_object_read:
	for line in file_object_read:          
		print(line.strip())

